home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10298 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP! How can I create a file system in ram?
  5. Date: Sat, 16 Mar 96 14:33:51 GMT
  6. Organization: none
  7. Message-ID: <826986831snz@genesis.demon.co.uk>
  8. References: <4iedqg$qdn@news5.erols.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4iedqg$qdn@news5.erols.com>
  15.            winstanl@clark.net "Roger Winstanley" writes:
  16.  
  17. >Is there a way in C to create a file system in ram.  I have a task
  18. >that needs to load an image many times to multiple processors.  I would
  19. >like to load the image from disk to the memory of one processor and then
  20. >have that processor load the rest of the processor's from it's local 
  21. >memory.  The problem is that the image loader needs to be passed a path
  22. >name to a file.  Can I create a file system in ram that would look like
  23. >a disk access?
  24.  
  25. If your system has a disk cache then as long as it is large enough that
  26. would effectively deal with the problem. RAM Disks are typically a feature
  27. of the OS - you can't make one using just the facilities provided by the
  28. C language. Check out a newsgroup related to your specific OS.
  29.  
  30. -- 
  31. -----------------------------------------
  32. Lawrence Kirby | fred@genesis.demon.co.uk
  33. Wilts, England | 70734.126@compuserve.com
  34. -----------------------------------------
  35.